package top.system.dept.pojo;

import com.fasterxml.jackson.annotation.JsonIgnore;

public class InvoiceItem {

    private Long id;

    @JsonIgnore
    private String invoiceId;

    private String name;

    private double amount;

    public InvoiceItem() {
    }

    public InvoiceItem(Long id, String invoiceId, String name, double amount) {
        this.id = id;
        this.invoiceId = invoiceId;
        this.name = name;
        this.amount = amount;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getInvoiceId() {
        return invoiceId;
    }

    public void setInvoiceId(String invoiceId) {
        this.invoiceId = invoiceId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getAmount() {
        return amount;
    }

    public void setAmount(double amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "InvoiceItem{" +
                "id=" + id +
                ", invoiceId='" + invoiceId + '\'' +
                ", name='" + name + '\'' +
                ", amount=" + amount +
                '}';
    }
}
